package com.wunu.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.wunu.entity.RoleToMenu;
import com.wunu.model.RoleToMenuModel;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wunu kin
 * @since 2019-03-25
 */
public interface RoleToMenuMapper extends BaseMapper<RoleToMenu> {
    List<RoleToMenuModel> selectByRoleCodePage(Page<RoleToMenuModel> page, @Param("roleCode") String roleCode);
    List<RoleToMenuModel> selectPermissionPage(Page<RoleToMenuModel> page);
    RoleToMenuModel findPermissionByCode(@Param("menuCode") String menuCode ,@Param("roleCode") String  roleCode);
}
